<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<title>酒店预订，酒店查询，宾馆住宿预订,网上订酒店-【携程旅行】</title>
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link href="../mui/css/mui.min.css" rel="stylesheet" />
		<link href="../styles/default.css" rel="stylesheet" />
		<style type="text/css">
			.mui-content-body {
				max-height: 30.9rem;
				overflow: scroll;
				padding-left: 0;
			}
			/* 重写样式--开始  */
			
			.mui-table-view:before,
			.mui-table-view:after,
			.mui-table-view-cell:after,
			.mui-input-group .mui-input-row:after,
			.mui-input-group:before,
			.mui-input-group:after {
				background-color: transparent;
			}
			
			.mui-table-view-cell {
				padding: 0.75rem 1.2rem;
			}
			
			.mui-input-group .mui-input-row {
				height: 3rem;
				padding-right: 1.2rem;
			}
			
			.mui-input-group:first-child li {
				padding-top: 1.2rem;
			}
			
			.mui-input-group:last-child li {
				padding-bottom: 1.2rem;
			}
			
			.mui-bar-nav {
				-webkit-box-shadow: none;
				box-shadow: none;
			}
			
			.mui-input-group {
				display: flex;
				align-items: center;
			}
			
			.mui-input-group .mui-checkbox {
				display: block;
				padding-right: 0;
			}
			
			.mui-checkbox input[type=checkbox],
			.mui-radio input[type=radio] {
				position: initial;
				width: 4rem;
			}
			
			.mui-checkbox input[type=checkbox]:checked:before,
			.mui-radio input[type=radio]:checked:before {
				color: #ff5143;
			}
			
			.mui-segmented-control {
				width: 80% !important;
			}
			
			.mui-bar .mui-segmented-control {
				top: 0;
				border: none;
			}
			
			.mui-segmented-control .mui-control-item {
				border: none;
				line-height: 0;
			}
			
			.mui-segmented-control .mui-control-item.mui-active {
				background-color: transparent;
				border: none;
			}
			
			.mui-segmented-control .mui-control-item.mui-active .header-title {
				position: relative;
				font-size: 1.8rem;
				color: #e61874;
			}
			
			.mui-segmented-control .mui-control-item.mui-active .header-title:after {
				position: absolute;
				content: '';
				height: 2px;
				left: 0;
				right: 0;
				bottom: 0px;
				margin: auto;
				background-color: #e61874;
				border-radius: 2px;
			}
			/* 重写样式--结束 */
			
			.mui-table-view-cell.mui-collapse .mui-collapse-content {
				padding: 0;
			}
			/* 头部样式--开始 */
			
			.hotel-header {
				font-size: 1.4rem;
				background: #fff;
				color: #333;
				font-weight: normal;
			}
			
			.hotel-header .mui-icon {
				font-size: 1.4rem;
				color: #333;
			}
			
			.hotel-header {
				font-size: 0;
				display: flex;
				align-items: center;
				justify-content: space-between;
			}
			
			.header-title {
				display: inline-block;
				margin: 0;
				overflow: hidden;
				text-overflow: ellipsis;
				font-size: 1.4rem;
				font-weight: normal;
				color: #333;
				text-align: center;
				white-space: nowrap;
				padding: 1.4rem 0 1.2rem;
			}
			/*.header-title.active {
				font-size: 0.9rem;
				color: #e61874;
				border-bottom: 2px solid #e61874;
			}*/
			
			.operate {
				font-size: 1.2rem;
				color: #333;
				font-weight: normal;
			}
			/* 头部样式--结束 */
			/* 主体内容--开始 */
			
			.mui-content {
				margin-bottom: 6.6rem;
			}
			
			.mui-content>.mui-table-view:first-child {
				margin-top: 0;
			}
			
			.city-classify {
				color: #333;
				font-size: 1.4rem;
				height: 2.5rem;
				line-height: 2.5rem;
				padding: 0 1.2rem;
			}
			
			.city {
				font-size: 1.2rem;
				color: #999;
				padding: 1.2rem;
				background-color: #f0f0f0;
				margin-bottom: 0;
			}
			
			.hotel-list {
				width: 100%;
				display: flex;
				align-items: center;
			}
			
			.hotel-list-img {
				margin-right: 0.9rem;
			}
			
			.hotel-list-img img {
				width: 7.5rem;
				vertical-align: middle;
				border-radius: 4px;
			}
			
			.hotel-list-info {
				display: flex;
				flex-direction: column;
				width: 57%;
			}
			
			.info-title {
				font-size: 1.6rem;
				color: #333;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				-webkit-line-clamp: 1;
			}
			
			.info-font-12 {
				font-size: 1.2rem;
				color: #666;
			}
			
			.summary {
				color: #e61874;
				padding: 0.9rem 0;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				-webkit-line-clamp: 1;
			}
			
			.score {
				padding-bottom: 0.6rem;
			}
			
			.hotel-list-price {
				display: flex;
				flex-direction: column;
				align-items: flex-end;
				flex: 1;
			}
			
			.hotel-list-price span {
				display: flex;
				align-items: flex-end;
				color: #e61874;
			}
			
			.hotel-list-price .start {
				font-size: 1.2rem;
				color: #666;
			}
			
			.hotel-list-price img {
				width: 1.6rem;
			}
			
			.hotel-price {
				font-size: 1.4rem;
			}
			
			.view-more {
				height: 4.5rem;
				line-height: 4.5rem;
				font-size: 1.2rem;
				color: #999;
				text-align: center;
			}
			
			.mui-input-row {
				font-size: 1.4rem;
				background-color: #fff;
				padding: 0 1.2rem;
			}
			
			.hotel-fixed-area {
				display: flex;
				align-items: center;
				justify-content: flex-end;
			}
			
			.hotel-fixed-area img {
				width: 50%;
			}
			
			.delete {
				position: fixed;
				bottom: 0;
				width: 100%;
				padding: 0.6rem 1.2rem;
				border-top: 1px solid #e0e0e0;
				background-color: #fff;
			}
			
			.delete button {
				font-size: 1.6rem;
				height: 4.2rem;
				line-height: 1;
				width: 100%;
				border: none;
				color: #fff;
				background-color: #e61874;
				border-radius: 5px;
			}
			/* 主体内容--结束 */
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav hotel-header">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href="javascript:history.back();" style="font-size: 24px;color:#e61874"></a>
			<div id="segmentedControl" class="mui-segmented-control">
				<a class="mui-control-item" href="#item1" style="font-size: 0;width: 50%;">
					<h1 class="header-title view">浏览历史</h1>
				</a>
				<a class="mui-control-item mui-active" href="#item2" style="width: 44%;">
					<h1 class="header-title collect active">我的收藏</h1>
				</a>
			</div>
			<a class="mui-icon mui-pull-right operate">编辑</a>
		</header>
		<div class="mui-content">
			<div id="item1" class="mui-control-content">
				<ul class="">
					<!-- 点击编辑后的出现复选框--开始 -->
					<form class="mui-input-group">
						<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
							<!--<label>checked：false</label>-->
							<input name="checkbox" value="Item 1" type="checkbox">
						</div>
						<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
							<div class="hotel-list-img">
								<img src="../styles/images/avatar-icon1.png" />
							</div>
							<div class="hotel-list-info">
								<span class="info-title">金广快捷</span>
								<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
								<span class="info-font-12 score">4.8分 | 非常棒</span>
								<span class="info-font-12">距您2.9公里</span>
							</div>
							<div class="hotel-list-price">
								<span>
									<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price">298</span>
								<span class="start">起</span>
								</span>
							</div>
						</li>
					</form>
					<form class="mui-input-group">
						<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
							<!--<label>checked：false</label>-->
							<input name="checkbox" value="Item 1" type="checkbox">
						</div>
						<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
							<div class="hotel-list-img">
								<img src="../styles/images/avatar-icon1.png" />
							</div>
							<div class="hotel-list-info">
								<span class="info-title">金广快捷</span>
								<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
								<span class="info-font-12 score">4.8分 | 非常棒</span>
								<span class="info-font-12">距您2.9公里</span>
							</div>
							<div class="hotel-list-price">
								<span>
										<span style="font-size: 1rem;">￥</span>
								<span class="hotel-price" style="font-size: 1.4rem;">298</span>
								<span class="start">起</span>
								</span>
							</div>
						</li>
					</form>
					<form class="mui-input-group">
						<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
							<!--<label>checked：false</label>-->
							<input name="checkbox" value="Item 1" type="checkbox">
						</div>
						<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
							<div class="hotel-list-img">
								<img src="../styles/images/avatar-icon1.png" />
							</div>
							<div class="hotel-list-info">
								<span class="info-title">金广快捷</span>
								<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
								<span class="info-font-12 score">4.8分 | 非常棒</span>
								<span class="info-font-12">距您2.9公里</span>
							</div>
							<div class="hotel-list-price">
								<span>
										<span style="font-size: 1rem;">￥</span>
								<span class="hotel-price" style="font-size: 1.4rem;">298</span>
								<span class="start">起</span>
								</span>
							</div>
						</li>
					</form>
					<!-- 点击编辑后的出现复选框--结束 -->
					<form class="mui-input-group">
						<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
							<!--<label>checked：false</label>-->
							<input name="checkbox" value="Item 1" type="checkbox">
						</div>
						<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
							<div class="hotel-list-img">
								<img src="../styles/images/avatar-icon1.png" />
							</div>
							<div class="hotel-list-info">
								<span class="info-title">金广快捷</span>
								<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
								<span class="info-font-12 score">4.8分 | 非常棒</span>
								<span class="info-font-12">距您2.9公里</span>
							</div>
							<div class="hotel-list-price">
								<span>
										<span style="font-size: 1rem;">￥</span>
								<span class="hotel-price" style="font-size: 1.4rem;">298</span>
								<span class="start">起</span>
								</span>
							</div>
						</li>
					</form>
					<form class="mui-input-group">
						<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
							<!--<label>checked：false</label>-->
							<input name="checkbox" value="Item 1" type="checkbox">
						</div>
						<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
							<div class="hotel-list-img">
								<img src="../styles/images/avatar-icon1.png" />
							</div>
							<div class="hotel-list-info">
								<span class="info-title">金广快捷</span>
								<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天</span>
								<span class="info-font-12 score">4.8分 | 非常棒</span>
								<span class="info-font-12">距您2.9公里</span>
							</div>
							<div class="hotel-list-price">
								<span>
										<span style="font-size: 1rem;">￥</span>
								<span class="hotel-price" style="font-size: 1.4rem;">298</span>
								<span class="start">起</span>
								</span>
							</div>
						</li>
					</form>
					<form class="mui-input-group">
						<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
							<!--<label>checked：false</label>-->
							<input name="checkbox" value="Item 1" type="checkbox">
						</div>
						<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
							<div class="hotel-list-img">
								<img src="../styles/images/avatar-icon1.png" />
							</div>
							<div class="hotel-list-info">
								<span class="info-title">金广快捷</span>
								<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天</span>
								<span class="info-font-12 score">4.8分 | 非常棒</span>
								<span class="info-font-12">距您2.9公里</span>
							</div>
							<div class="hotel-list-price">
								<span>
										<span style="font-size: 1rem;">￥</span>
								<span class="hotel-price" style="font-size: 1.4rem;">298</span>
								<span class="start">起</span>
								</span>
							</div>
						</li>
					</form>
				</ul>
			</div>
			<div id="item2" class="mui-control-content mui-active">
				<ul class="mui-table-view">
					<p class="city">深圳</p>
					<ul class="mui-content-body">
						<!-- 点击编辑后的出现复选框--开始 -->
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
						<!-- 点击编辑后的出现复选框--结束 -->
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
					</ul>
					<!--<div class="view-more">
						查看更多
					</div>-->
				</ul>

				<ul class="mui-table-view">
					<p class="city">广州</p>
					<ul class="mui-content-body">
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
						<form class="mui-input-group">
							<div class="mui-input-row mui-checkbox mui-left" style="display: none;">
								<!--<label>checked：false</label>-->
								<input name="checkbox" value="Item 1" type="checkbox">
							</div>
							<li class="mui-table-view-cell hotel-list" data-url="./hotel-detail2.html">
								<div class="hotel-list-img">
									<img src="../styles/images/avatar-icon1.png" />
								</div>
								<div class="hotel-list-info">
									<span class="info-title">金广快捷</span>
									<span class="info-font-12 summary">爱爱情趣好去处，嗨翻天爱爱情趣好去处，嗨翻天</span>
									<span class="info-font-12 score">4.8分 | 非常棒</span>
									<span class="info-font-12">距您2.9公里</span>
								</div>
								<div class="hotel-list-price">
									<span>
										<span style="font-size: 1rem;">￥</span>
									<span class="hotel-price" style="font-size: 1.4rem;">298</span>
									<span class="start">起</span>
									</span>
								</div>
							</li>
						</form>
					</ul>
					<!--<div class="view-more">
						查看更多
					</div>-->
				</ul>
			</div>
		</div>
		<div id="del" class="delete" style="display: none;">
			<button id="del">删除</button>
		</div>
		<script src="../mui/js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});

			//			mui('.mui-input-group').on('change', 'input', function() {
			//				var value = this.checked ? "true" : "false";
			//				console.log(value);
			//			});

			var operate = document.getElementsByClassName("operate")[0]; // 编辑/取消按钮
			var allCheckbox = document.getElementsByClassName("mui-checkbox"); // 所有选择框
			var del = document.getElementById("del"); // 删除按钮
			var flag = 0;

			// 点击编辑/取消按钮
			operate.addEventListener('tap', function() {
				flag++;
				for(var i = 0; i < allCheckbox.length; i++) {
					if(flag % 2 == 1) {
						operate.innerHTML = "取消";
						allCheckbox[i].style.display = "block";
						del.style.display = "block";
					} else {
						operate.innerHTML = "编辑";
						allCheckbox[i].style.display = "none";
						del.style.display = "none";
					}
				}
			});

			var check = document.getElementsByName("checkbox"); // 寻找到所有的输入框
			// 点击删除按钮
			del.addEventListener('tap', function() {
				for(var i = 0; i < check.length; i++) {
					if(check[i].checked) {
						check[i].parentNode.parentNode.style.display = "none";
					}
				}
			});
		</script>
	</body>

</html>